package lab01;

public class Test11 {

    public static void main(String[] args) {

        System.out.print( 2 + "\t" + 3 + "\t"+ 5 + "\t"+ 7 + "\t");
        int j = 4;
        for (int i = 3; i < 101; i++) {

            if (i % 2 == 0) {
                continue;
            } else if (i % 3 == 0) {
                continue;
            }else if (i % 5 == 0) {
                continue;
            }  else if (i % 7 == 0) {
                continue;
            } else {
                j++;
                System.out.print(i + "\t");
            }


            if (j % 5 == 0) {
                System.out.println();
            }
        }
    }
}
